<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <html id="outputHtml1">
            <head id="outputHead1">
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <script language="javascript" src="resources/js/dropdown.js"></script>
            </head>
            <body id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1" styleClass="bodyCenterAlign">
                    <jsp:directive.include file="fragments/HeaderFragment.jspf"/>
                    <jsp:directive.include file="fragments/MenuFragment.jspf"/>
                    <!--ice:messages errorClass="errorMessage" fatalClass="fatalMessage" id="messages1" infoClass="infoMessage" showSummary="true" warnClass="warnMessage"/-->
                    <ice:panelLayout styleClass="mainPL">
                        <ice:messages errorClass="errorMessage" fatalClass="fatalMessage" id="messages1" infoClass="infoMessage" showSummary="true" warnClass="warnMessage"/>
                        <br/>
                        <ice:outputLabel styleClass="titlePageAdmin" value="Reporte / Revisión de vehículos"/>
                        <br/>


                        <ice:panelGrid width="100%">
                            <ice:panelGrid columns="2" width="50%">
                                <br/>
                                <br/>
                                <ice:outputLabel styleClass="lb1" value="Desde"/>
                                <ice:selectInputDate id="date1" renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" required="true"  value="#{ReporteLineaRevisionPage.fechaDesde}">
                                    <f:attribute name="label" value="Fecha Desde" />
                                    <f:convertDateTime pattern="yyyy-MM-dd"/>
                                </ice:selectInputDate>

                                <ice:outputLabel styleClass="lb1" value="Hasta"/>
                                <ice:selectInputDate renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" required="true"  value="#{ReporteLineaRevisionPage.fechaHasta}">
                                    <f:attribute name="label" value="Fecha Hasta" />
                                    <f:convertDateTime pattern="yyyy-MM-dd"/>
                                </ice:selectInputDate>
                            </ice:panelGrid>
                        </ice:panelGrid>
                        <br/>
                        <ice:commandButton  action="#{ReporteLineaRevisionPage.consultar}" value="Consultar"/>
                        <br/>

                        <br/>
                        <ice:panelGrid width="100%" rendered="#{ReporteLineaRevisionPage.showReport}">
                            <ice:dataTable rows="10"  value="#{ReporteLineaRevisionPage.listaVehiculos}" var="row" width="100%">
                                <f:facet name="header">
                                    <ice:panelGroup style="height: 20px;">
                                        <ice:outputText style="font-size:11px;font-weight:bold;color:#000000;" value="Vehículos por Revisión"/>
                                    </ice:panelGroup>
                                </f:facet>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:outputText styleClass="lb1" value="Tipo Revisión"/>
                                    </f:facet>
                                    <ice:outputText  value="#{row.kilometraje}#{' Kms'}"/>
                                    <f:facet name="footer">
                                        <ice:outputText styleClass="lb1" value="Total de Vehículos"/>
                                    </f:facet>
                                </ice:column>
                                <ice:column>
                                    <f:facet name="header">
                                        <ice:outputText styleClass="lb1" value="Cantidad de Vehículos"/>
                                    </f:facet>
                                    <ice:outputText value="#{row.cantidadVehiculos}"/>
                                    <f:facet name="footer">
                                        <ice:outputText styleClass="lb1" value="#{ReporteLineaRevisionPage.numRegistros}"/>
                                    </f:facet>
                                </ice:column>
                            </ice:dataTable>
                        </ice:panelGrid>
                    </ice:panelLayout>
                </ice:form>
            </body>
        </html>
    </f:view>
</jsp:root>
